package com.interview.design;

public class SingletonTest implements Runnable{
    @Override
    public void run() {
        Singleton instance = Singleton.getInstance();
        System.out.println(instance + " " + Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            new Thread(new SingletonTest(), "thread" + i).start();
        }
    }
}
